package com.yc.role.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yc.base.BaseService;
import com.yc.role.entity.Role;

import java.util.List;
/**
 * <p>
 * 后台角色表 服务类
 * </p>
 *
 * @author bao
 * @since 2021-12-09
 */
public interface IRoleService extends BaseService<Role> {

    boolean create(Role role);

    boolean createBatch(List<Role> roleList);

    boolean delete(List<Long> ids);

    boolean update(Role role);

    Role queryById(Long id);

    List<Role> selectList();

    IPage<Role> selectPage(IPage<Role> page);

    /**
     * 根据用户id获取角色list
     * */
    List<Role> queryByUid(Long uid);

    /**
     * 根据ids获取角色list
     * */
    List<Role> queryByIds(List<Long> ids);
}
